import axiosApi from './AxiosApi.js'

export default {
  page (data) {
    return axiosApi({
      method: 'POST',
      url: `http://localhost:8187/transport-task/page`,
      data
    })
  },
  page1(id){
    return axiosApi({
      method: "GET",
      url:`http://localhost:8187/transport-task/${id}`,
    })
  },
  page3(data){
    return axiosApi({
      method: 'GET',
      url: 'http://localhost:8186/order',
      data
    })
  },
  cargo(data){
    return axiosApi({
      method: 'GET',
      url: 'http://localhost:8186/cargo',
      data
    })
  },
  dispatch(orderId,taskType){
    return axiosApi({
      method: 'GET',
      url: `http://localhost:8187/pickup-dispatch-task/orderId/${orderId}/${taskType}`,
    })
  },
  getOrder(orderId){
    return axiosApi({
      method: 'GET',
      url: `http://localhost:8186/order/${orderId}`,
    })
  }
}
